﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.popups.payment {
    import flash.events.*;
    import flash.display.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.views.popups.*;
    import net.wooga.pets.constants.*;
    import net.wooga.pets.utils.*;

    public class PaymentFailedPopupMediator extends AbstractPopupMediator {

        override public function onRegister():void{
            super.onRegister();
            addOkButton("global_try_again");
            addLabel("title showcardGothicFont", this.view.data.title);
            addLabel("text myriadProFont", this.view.data.text);
            var _local1:MovieClip = AssetsLibrary.getMovieClip("PaymentFailedPicture");
            RepriseUtils.addClipComponent(this.view, "contentDisplay", _local1);
        }
        private function get view():PaymentFailedPopupView{
            return ((viewComponent as PaymentFailedPopupView));
        }
        override protected function onOk(_arg1:MouseEvent):void{
            var _local2:InfoEvent = new InfoEvent(EventConstants.START_PAYMENT, null, this.view.data);
            dispatch(_local2);
            super.onOk(_arg1);
        }

    }
}//package net.wooga.pets.views.popups.payment 
